.class public Lcom/donson/momark/view/view/n;
.super Landroid/widget/RelativeLayout;


# instance fields
.field a:Landroid/webkit/WebViewClient;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/ImageView;

.field private d:Landroid/webkit/WebView;

.field private e:Landroid/content/Context;

.field private f:Landroid/widget/ImageView;

.field private g:Landroid/widget/RelativeLayout;

.field private h:Ljava/util/Timer;

.field private i:Landroid/widget/ImageView;

.field private j:Ljava/util/TimerTask;

.field private k:Ljava/lang/String;

.field private l:Landroid/view/View$OnClickListener;

.field private m:Landroid/os/Handler;

.field private w:Landroid/widget/ImageView;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 4

    const/4 v3, 0x1

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    new-instance v1, Lcom/donson/momark/view/view/m;

    invoke-direct {v1, p0}, Lcom/donson/momark/view/view/m;-><init>(Lcom/donson/momark/view/view/n;)V

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->a:Landroid/webkit/WebViewClient;

    new-instance v1, Lcom/donson/momark/view/view/F;

    invoke-direct {v1, p0}, Lcom/donson/momark/view/view/F;-><init>(Lcom/donson/momark/view/view/n;)V

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->l:Landroid/view/View$OnClickListener;

    new-instance v1, Lcom/donson/momark/view/view/V;

    invoke-direct {v1, p0}, Lcom/donson/momark/view/view/V;-><init>(Lcom/donson/momark/view/view/n;)V

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->m:Landroid/os/Handler;

    iput-object p1, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    iput-object p2, p0, Lcom/donson/momark/view/view/n;->k:Ljava/lang/String;

    move-object v0, p1

    check-cast v0, Landroid/app/Activity;

    move-object v1, v0

    invoke-virtual {v1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Landroid/view/Window;->requestFeature(I)Z

    new-instance v1, Landroid/webkit/WebView;

    invoke-direct {v1, p1}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    const/16 v2, 0x19

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->setInitialScale(I)V

    invoke-direct {p0}, Lcom/donson/momark/view/view/n;->g()V

    return-void
.end method

.method static synthetic a(Lcom/donson/momark/view/view/n;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic d(Lcom/donson/momark/view/view/n;)Landroid/webkit/WebView;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic e(Lcom/donson/momark/view/view/n;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->k:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic g(Lcom/donson/momark/view/view/n;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->b:Landroid/widget/ImageView;

    return-object v0
.end method

.method private g()V
    .locals 9

    const/4 v8, 0x2

    const/4 v6, -0x2

    const/4 v7, -0x1

    new-instance v0, Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/16 v1, 0x64

    new-instance v2, Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    invoke-direct {v2, v3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {v2, v1}, Landroid/widget/LinearLayout;->setId(I)V

    new-instance v3, Landroid/graphics/drawable/BitmapDrawable;

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    const-string v5, "momark_banner.png"

    invoke-static {v4, v5}, Lcom/donson/momark/util/a;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v4

    invoke-direct {v3, v4}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setOrientation(I)V

    const/16 v3, 0x11

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setGravity(I)V

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v3, v6, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v4, 0x3f80

    iput v4, v3, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    new-instance v4, Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    invoke-direct {v4, v5}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/donson/momark/view/view/n;->w:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->w:Landroid/widget/ImageView;

    invoke-virtual {v4, v8}, Landroid/widget/ImageView;->setId(I)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->w:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    const-string v6, "momark_preview2.png"

    invoke-static {v5, v6}, Lcom/donson/momark/util/a;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->w:Landroid/widget/ImageView;

    invoke-virtual {v2, v4, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v4, Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    invoke-direct {v4, v5}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/donson/momark/view/view/n;->b:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->b:Landroid/widget/ImageView;

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setId(I)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->b:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    const-string v6, "momark_next2.png"

    invoke-static {v5, v6}, Lcom/donson/momark/util/a;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, v4, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v4, Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    invoke-direct {v4, v5}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/donson/momark/view/view/n;->c:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->c:Landroid/widget/ImageView;

    const/4 v5, 0x3

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setId(I)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->c:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    const-string v6, "momark_refresh.png"

    invoke-static {v5, v6}, Lcom/donson/momark/util/a;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->c:Landroid/widget/ImageView;

    invoke-virtual {v2, v4, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v4, Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    invoke-direct {v4, v5}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/donson/momark/view/view/n;->f:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->f:Landroid/widget/ImageView;

    const/4 v5, 0x4

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setId(I)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->f:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    const-string v6, "momark_down.png"

    invoke-static {v5, v6}, Lcom/donson/momark/util/a;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->f:Landroid/widget/ImageView;

    invoke-virtual {v2, v4, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v4, Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    invoke-direct {v4, v5}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/donson/momark/view/view/n;->i:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->i:Landroid/widget/ImageView;

    const/4 v5, 0x5

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setId(I)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->i:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    const-string v6, "momark_exit.png"

    invoke-static {v5, v6}, Lcom/donson/momark/util/a;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->i:Landroid/widget/ImageView;

    invoke-virtual {v2, v4, v3}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    iget-object v4, p0, Lcom/donson/momark/view/view/n;->e:Landroid/content/Context;

    const/16 v5, 0x32

    invoke-static {v4, v5}, Lcom/donson/momark/util/u;->a(Landroid/content/Context;I)I

    move-result v4

    invoke-direct {v3, v7, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v4, 0xc

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v0, v2, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->getHeight()I

    move-result v2

    sub-int v2, v7, v2

    invoke-direct {v3, v7, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v3, v8, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    invoke-virtual {v0, v1, v3}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v0}, Lcom/donson/momark/view/view/n;->a(Landroid/widget/RelativeLayout;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->k:Ljava/lang/String;

    invoke-static {v0}, Landroid/webkit/URLUtil;->isNetworkUrl(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->k:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    new-instance v1, Lcom/donson/momark/view/view/T;

    invoke-direct {v1, p0}, Lcom/donson/momark/view/view/T;-><init>(Lcom/donson/momark/view/view/n;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    new-instance v1, Lcom/donson/momark/view/view/H;

    invoke-direct {v1, p0}, Lcom/donson/momark/view/view/H;-><init>(Lcom/donson/momark/view/view/n;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->b:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->l:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->w:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->l:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->c:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->l:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->f:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->l:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->i:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->l:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0}, Lcom/donson/momark/view/view/n;->a()V

    return-void
.end method

.method static synthetic h(Lcom/donson/momark/view/view/n;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->w:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic j(Lcom/donson/momark/view/view/n;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->m:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 6

    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/donson/momark/view/view/n;->h:Ljava/util/Timer;

    new-instance v0, Lcom/donson/momark/view/view/I;

    invoke-direct {v0, p0}, Lcom/donson/momark/view/view/I;-><init>(Lcom/donson/momark/view/view/n;)V

    iput-object v0, p0, Lcom/donson/momark/view/view/n;->j:Ljava/util/TimerTask;

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->h:Ljava/util/Timer;

    iget-object v1, p0, Lcom/donson/momark/view/view/n;->j:Ljava/util/TimerTask;

    const-wide/16 v2, 0x0

    const-wide/16 v4, 0x3e8

    invoke-virtual/range {v0 .. v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;JJ)V

    return-void
.end method

.method public a(Landroid/widget/RelativeLayout;)V
    .locals 0

    iput-object p1, p0, Lcom/donson/momark/view/view/n;->g:Landroid/widget/RelativeLayout;

    return-void
.end method

.method public d()Landroid/widget/RelativeLayout;
    .locals 1

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->g:Landroid/widget/RelativeLayout;

    return-object v0
.end method

.method protected e()V
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->h:Ljava/util/Timer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->h:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->purge()I

    iget-object v0, p0, Lcom/donson/momark/view/view/n;->h:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->h:Ljava/util/Timer;

    :cond_0
    iput-object v1, p0, Lcom/donson/momark/view/view/n;->d:Landroid/webkit/WebView;

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->g:Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->w:Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->b:Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->c:Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->f:Landroid/widget/ImageView;

    iput-object v1, p0, Lcom/donson/momark/view/view/n;->i:Landroid/widget/ImageView;

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p0}, Lcom/donson/momark/view/view/n;->e()V

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/widget/RelativeLayout;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    return v0
.end method
